const state = {
	tenantId: '000000',
	currentChatDoctorId: 1916810752945819649, // 当前聊天的医生ID
};

const mutations = {
	SET_TENANT_ID: (state, value) => {
		state.tenantId = value;
	},
	SET_CURRENT_CHAT_DOCTOR_ID: (state, value) => {
		state.currentChatDoctorId = value;
	}
};

const actions = {
	// 设置当前聊天的医生ID
	setCurrentChatDoctorId({ commit }, doctorId) {
		commit('SET_CURRENT_CHAT_DOCTOR_ID', doctorId);
		console.log('设置当前聊天医生ID:', doctorId);
	}
};

export default {
	namespaced: true,
	state,
	mutations,
	actions
};